<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>修改666</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css" />
</head>
<body>
<div class="transfer-box">
    <div class="title">详情页、修改</div>
    <form id="form1" action="/domodify">
        <input type="hidden"value="${av.id}" name="id">
        <div>
            区域: <select name="districtId" >

            <c:forEach items="${districtlist}" var="t">
                <option value="${t.id}"

                        <c:if test="${t.id==av.districtId}">selected</c:if>
                >${t.name}</option>

            </c:forEach>

<%--
            <fmt:formatDate value="${t.monitorTime}" pattern="yyyy-MM-dd"></fmt:formatDate>
--%>

        </select>
        </div>
        <div>
            检测日期: <input type="text" name="monitorTime" value="<${av.monitorTime}" disabled>
        </div>
        <div>
            PH10: <input type="text" name="pm10" value="${av.pm10}" disabled>
        </div>
        <div>
            PH25: <input type="text" name="pm25" value="${av.pm25}" disabled>
        </div>
        <div>
            监测站: <input type="text" name="monitoringStation"  value="${av.monitoringStation}" disabled>
        </div>
        <div>
            <input type="button" value="修改" id="change">
            <input type="reset" value="重置" disabled>
            <input type="button" value="返回" id="return">
            <input type="submit" value="提交" disabled>

        </div>
    </form>
</div>
</body>
<script src="/js/jquery-1.8.3.js"></script>
<script>


    if ("${msg}"){
        alert("${msg}");
    }
    <c:remove var="msg" scope="session"></c:remove>

    $("#return").bind("click",function(){

        location="/query";
    })

    $("#change").bind("click",function(){

        $("input").attr("disabled",false);
    })

</script>
</html>
